﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter11.Code02.Code02.Snippet03
{
    public class AddClass1
    {
        public int Val;

        public static AddClass1 operator +(AddClass1 op1, AddClass1 op2)
        {
            AddClass1 returnVal = new AddClass1();
            returnVal.Val = op1.Val + op2.Val;
            return returnVal;
        }
    }
}
